@extends('admin.app')

@section('breadcrumb')
<div class="bg-light lter b-b wrapper-md">
  <ol class="breadcrumb bg-light lter m-n no-padder">
    <li><a href="{{ admin_action('HomeController@index') }}">主页</a></li>
    <li>Rbac</li>
    <li><a href="{{ admin_action('Rbac\PermissionsController@index') }}">权限管理</a></li>
    <li class="active">{{ $permission->name }}</li>
  </ol>
</div>
@endsection

@section('content')
  <div class="panel panel-default">
    <div class="panel-heading font-bold">
      权限信息
    </div>
    <div class="panel-body">
      <form class="form-horizontal">
        <div class="form-group">
          <label class="col-lg-2 control-label">名称：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $permission->name }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">请求方法：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $permission->methods }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">请求链接：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $permission->uri }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">父级权限：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $permission->parent ? $permission->parent->name : '无' }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">描述：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $permission->description }}</p>             
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">菜单：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $permission->is_menu ? '是' : '否' }}</p>             
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <div class="col-lg-4 col-lg-offset-2">
            <a href="{{ admin_action('Rbac\PermissionsController@index') }}" class="btn btn-default">返&nbsp;回</a>
          </div>
        </div>
      </form>
    </div>
  </div>
@endsection